﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yqd.Enm;

namespace Yqd.Models
{
    public class Yqd_Assign
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int AssignID { get; set; }

        [DisplayName("任务编号")]
        public long TaskID { get; set; }

        [DisplayName("事项编号（钉办督导编号、协同管理编号")]
        public int ItemID { get; set; }

        [DisplayName("事项类型（钉办督到、协同管理）")]
        public 事项类型 ItemType { get; set; }

        [DisplayName("主办单位")]
        [StringLength(200)]
        public string LeadUnit { get; set; }

        [DisplayName("协同单位")]
        public string CooperativeUnit { get; set; }

        [DisplayName("方案报审时限")]
        public DateTime ReportLimit { get; set; }

        [DisplayName("完成时限")]
        public DateTime CompleteLimit { get; set; }

        [DisplayName("反馈周期")]
        public 进展反馈周期 FeedbackLoop { get; set; }

        [DisplayName("自定义天数")]
        public int Days { get; set; }

        [DisplayName("报送进展情况")]
        public string ProgressInfo { get; set; }

        [DisplayName("佐证资料")]
        public string Material { get; set; }

        [DisplayName("报送时间")]
        public DateTime? ReportTime { get; set; }

        [DisplayName("逾期提醒时间")]
        public DateTime? NotifyTime { get; set; }

        [DisplayName("交办时间")]
        public DateTime Instime { get; set; }

        [DisplayName("交办人")]
        [StringLength(50)]
        public string EmployeeCode { get; set; }

        [DisplayName("交办单位")]
        [StringLength(50)]
        public string UnitCode { get; set; }
        /// <summary>
        /// 是否上传办结报告
        /// </summary>
        public int IsReport { get; set; } = 1;
    }
}
